package com.maomao.mybatis.service.impl;

import com.maomao.mybatis.dao.DepartmentDAO;
import com.maomao.mybatis.domain.Department;
import com.maomao.mybatis.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 *
 * @author xiaomin
 * @date 2018/5/14
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentDAO departmentDAO;
    @Override
    public int insertAndGetId(Department department) {
        return departmentDAO.insertAndGetId(department);
    }

    @Override
    public int addTrainRecordBatch(List<Department> departments) {
        return departmentDAO.addTrainRecordBatch(departments);
    }
}
